/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package pl.raflik.queryxml.langservice;

import java.util.ArrayList;
import java.util.List;
import org.w3c.dom.NodeList;

/**
 *
 * @author raflik
 */
public class ConvUtil {
    public static List<Object> toList(NodeList nodeList) {
        ArrayList<Object> ret = new ArrayList<Object>();
        int length = nodeList.getLength();
        for (int i = 0; i < length; i++) {
            ret.add(nodeList.item(i));
        }

        return ret;
    }
}
